import { useNavigate } from "react-router-dom";
import { Button } from "antd";
import ToDoList from '../todolist/index'



function Home(props) {
  const navigate = useNavigate();
  const routerto = (path) => {
    navigate(path);
  };
  return (
    <div>
      <h1>首页</h1>
      <Button onClick={() => routerto("/game")}>game</Button>
      <Button onClick={() => routerto("/list")}>list</Button>
      <div>
      <ToDoList></ToDoList>
      </div>
    </div>
  );
}
export default Home;
